package calendar;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

public class CalendarDel {

	CalendarMyba dao;
	
	public void setDao(CalendarMyba dao) {
		this.dao = dao;
	}

	@RequestMapping("/CalDel.cal")
	public ModelAndView insertForm(CalendarVo cv){
		ModelAndView mav = new ModelAndView();
		dao.setCv(cv);
		int flag = dao.delete();
		mav.addObject("Flag", flag);
		mav.addObject("Page", "DEL");
		mav.setViewName("/homepage/calSpring/message.jsp");
		return mav;
	}
	
}
